home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d20
/
bbe_v505.arc
/
BBERUN.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-09-20
|
1KB
|
63 lines
Rem --------------------------------------------------------------------
Rem - Example of a 'All singing, all dancing' BBE batch file -
Rem - with QuickBBS <tm> -
Rem --------------------------------------------------------------------
Rem
Rem --------------------------------------------------------------------
Rem - General loop (COM2 is used) -
Rem --------------------------------------------------------------------
:Loop
BBE 2
If Errorlevel 64 goto Time
If Errorlevel 36 goto Hang
If Errorlevel 32 goto Mailer
If Errorlevel 30 goto QBBS_300
If Errorlevel 24 goto QBBS_2400
if Errorlevel 12 goto QBBS_1200
If Errorlevel 8 goto Error
If Errorlevel 2 goto QBBS_Local
If Errorlevel 1 goto End
Goto End
:QBBS_2400
quickbbs -B2400 -E0
goto Tests
:QBBS_1200
quickbbs -B1200 -E0
goto Tests
:QBBS_300
quickbbs -B300 -E0
goto Tests
:QBBS_Local
quickbbs -L
goto Tests
:Tests
If Errorlevel 6 goto Event
goto loop
:Event
REM QuickBBS event overhere
Goto Loop
:Time
REM BBE has an event
REM Do something or end
Goto End;
:Hang
ECHO User disconnected [HANG option]
Goto Loop
:Mailer
ECHO Mailer called
Goto Loop
:Error
ECHO Fatal error in BBE
:End